<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <div class="box box-primary">
                <div class="box-header">
                    <?php
        $msg = $this->session->flashdata('msg');
        if($msg!=''){?>
            <div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<b>Alert!</b> <?php echo $msg; ?>
</div>

       <?php }
        ?> 
                    <h3 class="box-title">Edit full URL </h3>
                </div><!-- /.box-header -->
                <!-- form start -->
                <form role="form" method="post" action="">
                    <div class="box-body">
                        <div class="form-group">
                            <label>Short Url</label><?php foreach ($url as $data) { ?> 
                            <input type="text" class="form-control" placeholder="<?php echo base_url() . $data->short_url; ?>" disabled />
                        </div>
                        <div class="form-group">
                            <label for="url">URL</label>
                            <input type="hidden" name="id" value="<?php echo $data->id; ?>" class="form-control">
                            <input type="text" name="long_url" class="form-control" id="url" placeholder="Enter Full URL" value="<?php echo $data->long_url; ?> " >
                            
 <?php } ?></div>
                    </div><!-- /.box-body -->

                    <div class="box-footer">
                        <button type="submit" class="btn btn-primary" name="submit">
                            Update
                        </button>&nbsp;&nbsp;
                        <a href="<?php echo base_url()?>searchurl" class="btn btn-primary">
                            Cencel
                        </a>
                    </div>
                </form>

            </div>
            </tbody>
            </table>
            <div class="panel panel-default">
            </div>
        </section>
    </aside>
</div>